<% @page_title = "Listing Households" %>

<table id="households" border="0" cellpadding="0" cellspacing="0"
  summary="List of all households.">
<thead>
  <tr>
    <th>Name</th>
    <th>Created at</th>
    <th>Last Updated at</th>
  </tr>
</thead>
<tbody>
<% for household in @households: %>
  <tr class="<%= cycle 'even', 'odd' -%>">
    <th scope="row"><%=h household.name -%></th>
    <td><%=h household.created_at -%></td>
    <td><%=h household.updated_at -%></td>
    <td><%= link_to "View Detailed", household_url(household) -%></td>
    <td><%= link_to "Edit", edit_household_url(household) -%></td>
    <td><%= link_to "Destroy", household_url(household), :method => 'delete' -%></td>
  </tr>
<% end %>
</tbody>
</table>

<%= pagination_links @household_pages -%>

<p><%= link_to "Create new Household", new_household_url -%></p>
